<!--
 * @Author: fanzejie
 * @Description: 请填写简介
-->
<template>
  <div class="about-container">
    <div>
      <el-row>
        <el-col :span="6">
          <el-card>
            <img src="@/assets/bar.png" class="image" />
            <div>
              <span class="text">柱状图</span>
              <el-button type="primary" class="button" @click="goBar"
                >跳转</el-button
              >
            </div>
          </el-card>
        </el-col>
        <el-col :span="6">
          <el-card>
            <img src="@/assets/lineChart.png" class="image" />
            <div>
              <span class="text">折线图</span>
              <el-button type="primary" class="button" @click="goLineChart"
                >跳转</el-button
              >
            </div>
          </el-card>
        </el-col>
        <el-col :span="6">
          <el-card>
            <img src="@/assets/lineChart.png" class="image" />
            <div>
              <span class="text">表格</span>
              <el-button type="primary" class="button" @click="goRunTable"
                >跳转</el-button
              >
            </div>
          </el-card>
        </el-col>
        <el-col :span="6">
          <el-card>
            <img src="@/assets/lineChart.png" class="image" />
            <div>
              <span class="text">带label多选,全选</span>
              <el-button type="primary" class="button"
                ><router-link to="checkbox" style="color:white"
                  >跳转
                </router-link></el-button
              >
            </div>
          </el-card>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-card>
            <img src="@/assets/bar.png" class="image" />
            <div>
              <span class="text">测试</span>
              <el-button type="primary" class="button" @click="goTest"
                >跳转</el-button
              >
            </div>
          </el-card>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "about",
  data() {
    return {};
  },
  components: {},
  methods: {
    goBar() {
      this.$router.push("/bar");
    },
    goLineChart() {
      this.$router.push("/lineChart");
    },
    goTest() {
      this.$router.push("/test");
    },
    goRunTable() {
      this.$router.push("/runTable");
    },
  },
};
</script>

<style scoped>
.image {
  width: 300px;
  height: 300px;
}
.text {
  padding-right: 40px;
}
</style>
